package org.ix.net.controllers;

import org.ix.net.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Home extends BaseLocalServlet {

    public String getServletInfo() {
        return "Home servlet";
    }

    protected void serve(HttpServletRequest req, HttpServletResponse res) {
        out.println("<h3>home page</h3>");
        out.println("<p>test</p>");
        out.println("<iframe src=\"" + prop("appname") + "/test\" class=\"homewidget\"></iframe>");
        out.println("<p>list</p>");
        out.println("<iframe src=\"" + prop("appname") + "/p2p/list\" class=\"homewidget\"></iframe>");
        out.println("<p>" + lbl("home.relations") + "</p>");
        out.println("<iframe src=\"" + prop("appname") + "/rela\" class=\"homewidget\"></iframe>");
        out.println("</body>");
        out.println("</html>");
    }
}
